import request from '@/utils/request';


// 获取试卷列表
export function queryClassifyList(params) {
	return request({
		method: 'get',
		url: '/testPaperClass/query',
		params
	});
}

// 新增试卷
export function addedClassify(data) {
	return request({
		method: 'post',
		url: '/testPaperClass/add',
		data
	});
}

// 修改试卷
export function updateClassify(data) {
	return request({
		method: 'post',
		url: '/testPaperClass/update',
		data
	});
}

// 删除试卷
export function deleteClassify(id) {
	return request({
		method: 'get',
		url: '/testPaperClass/delete/' + id
	});
}

// 获取试卷详情
export function classifyDetail(id) {
	return request({
		method: 'get',
		url: '/testPaperClass/query/' + id
	});
}